﻿@using Entidades.Sistema.Produccion

<script type="text/javascript">
{
    if(history.forward(1))
    location.replace(history.forward(1))
}
</script>

<meta http-equiv="Expires" content="0" />
<meta http-equiv="Pragma" content="no-cache" />


@model DiagramacionProduccion

@Html.DevExpress().Splitter(
    settings =>
    {
        settings.Name = "splScrolling";
        settings.Height = 250;
        settings.Width = Unit.Percentage(100);

        settings.Panes.Add(pane => {
            pane.ScrollBars = ScrollBars.Vertical;
            pane.ScrollBars = ScrollBars.Auto;
            pane.ShowCollapseBackwardButton = DefaultBoolean.True;
            pane.SetContent(() => {
                ViewContext.Writer.Write("<h4>Productos Resultantes</h4>");
                Html.RenderPartial("ProductosResultantesPartial", Model.ProduccionProductos);
            });
        });
        settings.Panes.Add(pane => {
            pane.ScrollBars = ScrollBars.Auto;
            pane.ShowCollapseBackwardButton = DefaultBoolean.True;
            pane.Size = Unit.Percentage(50);
            pane.SetContent(() => {
                ViewContext.Writer.Write("<h4>Insumos Necesarios</h4>");
                Html.RenderPartial("InsumosNecesariosPartial", Model.InsumosNecesarios);
            });
        });
    }).GetHtml()

@Html.ActionLink("Ir a Digramaciones","Index", null, new { @class = "dxbButton_MetropolisBlue dxbButtonSys dxbTSys" })



